.class public Lcom/bitauto/autoeasy/news/NewsActivity;
.super Lcom/bitauto/autoeasy/BaseListActivity;
.source "NewsActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/bitauto/autoeasy/news/NewsActivity$downLoadTask;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/bitauto/autoeasy/BaseListActivity;",
        "Landroid/view/View$OnClickListener;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# static fields
.field private static final BUTTONSIZE:I = 0x6

.field private static final NEWS1:I = 0x1

.field private static final NEWS2:I = 0x2

.field private static final NEWS3:I = 0x3

.field private static final NEWS4:I = 0x4

.field private static final NEWS5:I = 0x5

.field public static activity:Lcom/bitauto/autoeasy/news/NewsActivity;


# instance fields
.field private final NEWSID:Ljava/lang/String;

.field private TAG:Ljava/lang/String;

.field private final TITLE:Ljava/lang/String;

.field private button:[Landroid/widget/Button;

.field private flag:I

.field private focusImgParser:Lcom/bitauto/autoeasy/news/Object/FocusImgParser;

.field private focuslist:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/news/Object/News;",
            ">;"
        }
    .end annotation
.end field

.field private gallery:Lcom/bitauto/autoeasy/widget/CustomeGallery;

.field imageButton:Landroid/widget/ImageButton;

.field private isRunning:Z

.field private list:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/news/Object/News;",
            ">;"
        }
    .end annotation
.end field

.field private listView:Landroid/widget/ListView;

.field private newsAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

.field private newsParser:Lcom/bitauto/autoeasy/news/Object/NewsParser;

.field public progressBar:Landroid/widget/ProgressBar;

.field private tempAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

.field private tempView:Landroid/widget/ListView;

.field public tempid:Ljava/lang/String;

.field private title:Ljava/lang/String;

.field public url:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 48
    invoke-direct {p0}, Lcom/bitauto/autoeasy/BaseListActivity;-><init>()V

    .line 58
    const/4 v0, 0x0

    iput v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    .line 62
    const-string v0, "title"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->TITLE:Ljava/lang/String;

    .line 63
    const-string v0, "newsid"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->NEWSID:Ljava/lang/String;

    .line 65
    const/4 v0, 0x6

    new-array v0, v0, [Landroid/widget/Button;

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    .line 77
    const-string v0, ""

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempid:Ljava/lang/String;

    .line 89
    const-string v0, "NewsActivity"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->TAG:Ljava/lang/String;

    .line 48
    return-void
.end method

.method static synthetic access$0(Lcom/bitauto/autoeasy/news/NewsActivity;)I
    .locals 1
    .parameter

    .prologue
    .line 58
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    return v0
.end method

.method static synthetic access$1(Lcom/bitauto/autoeasy/news/NewsActivity;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 59
    iput-boolean p1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->isRunning:Z

    return-void
.end method

.method static synthetic access$2(Lcom/bitauto/autoeasy/news/NewsActivity;)Ljava/util/ArrayList;
    .locals 1
    .parameter

    .prologue
    .line 85
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->focuslist:Ljava/util/ArrayList;

    return-object v0
.end method


# virtual methods
.method public RunTask()V
    .locals 4

    .prologue
    const/4 v1, 0x1

    .line 393
    iget-boolean v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->isRunning:Z

    if-eqz v0, :cond_0

    .line 394
    const-string v0, "\u5237\u65b0\u4e2d\uff0c\u8bf7\u7a0d\u540e."

    invoke-static {p0, v0}, Lcom/bitauto/autoeasy/tool/ToolBox;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    .line 399
    :goto_0
    return-void

    .line 396
    :cond_0
    iput-boolean v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->isRunning:Z

    .line 397
    new-instance v0, Lcom/bitauto/autoeasy/news/NewsActivity$downLoadTask;

    invoke-direct {v0, p0}, Lcom/bitauto/autoeasy/news/NewsActivity$downLoadTask;-><init>(Lcom/bitauto/autoeasy/news/NewsActivity;)V

    new-array v1, v1, [Ljava/lang/String;

    const/4 v2, 0x0

    const-string v3, ""

    aput-object v3, v1, v2

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/news/NewsActivity$downLoadTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto :goto_0
.end method

.method public changeButtonBg(I)V
    .locals 3
    .parameter "num"

    .prologue
    .line 495
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    const/4 v1, 0x6

    if-lt v0, v1, :cond_0

    .line 501
    return-void

    .line 496
    :cond_0
    if-ne v0, p1, :cond_1

    .line 497
    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    aget-object v1, v1, v0

    const v2, 0x7f020029

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 495
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 499
    :cond_1
    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    aget-object v1, v1, v0

    const v2, 0x7f02003b

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setBackgroundResource(I)V

    goto :goto_1
.end method

.method public changeColumn(I)V
    .locals 0
    .parameter "num"

    .prologue
    .line 489
    invoke-virtual {p0, p1}, Lcom/bitauto/autoeasy/news/NewsActivity;->changeButtonBg(I)V

    .line 490
    invoke-virtual {p0, p1}, Lcom/bitauto/autoeasy/news/NewsActivity;->setUrl(I)V

    .line 491
    return-void
.end method

.method public downLoadData()V
    .locals 2

    .prologue
    .line 209
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsParser:Lcom/bitauto/autoeasy/news/Object/NewsParser;

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/news/Object/NewsParser;->setUrl(Ljava/lang/String;)V

    .line 210
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsParser:Lcom/bitauto/autoeasy/news/Object/NewsParser;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Object/NewsParser;->Paser2Object()V

    .line 211
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsParser:Lcom/bitauto/autoeasy/news/Object/NewsParser;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Object/NewsParser;->getList()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    .line 212
    return-void
.end method

.method public downLoadFocusData(Ljava/lang/String;)V
    .locals 1
    .parameter "url"

    .prologue
    .line 180
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->focusImgParser:Lcom/bitauto/autoeasy/news/Object/FocusImgParser;

    invoke-virtual {v0, p1}, Lcom/bitauto/autoeasy/news/Object/FocusImgParser;->setUrl(Ljava/lang/String;)V

    .line 181
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->focusImgParser:Lcom/bitauto/autoeasy/news/Object/FocusImgParser;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Object/FocusImgParser;->Paser2Object()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->focuslist:Ljava/util/ArrayList;

    .line 182
    return-void
.end method

.method public getList(Ljava/lang/String;)Ljava/util/ArrayList;
    .locals 2
    .parameter "url"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/news/Object/News;",
            ">;"
        }
    .end annotation

    .prologue
    .line 268
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsParser:Lcom/bitauto/autoeasy/news/Object/NewsParser;

    invoke-static {p1}, Lcom/bitauto/autoeasy/tool/ToolBox;->changeSpace(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/news/Object/NewsParser;->setUrl(Ljava/lang/String;)V

    .line 269
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsParser:Lcom/bitauto/autoeasy/news/Object/NewsParser;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Object/NewsParser;->Paser2Object()V

    .line 270
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsParser:Lcom/bitauto/autoeasy/news/Object/NewsParser;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Object/NewsParser;->getList()Ljava/util/ArrayList;

    move-result-object v0

    return-object v0
.end method

.method public initView()V
    .locals 9

    .prologue
    const/4 v8, 0x4

    const/4 v7, 0x3

    const/4 v6, 0x2

    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 116
    iget-object v3, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    const v2, 0x7f0b0053

    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/news/NewsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    aput-object v2, v3, v4

    .line 117
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v4

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 118
    iget-object v3, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    const v2, 0x7f0b0054

    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/news/NewsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    aput-object v2, v3, v5

    .line 119
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v5

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 120
    iget-object v3, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    const v2, 0x7f0b0055

    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/news/NewsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    aput-object v2, v3, v6

    .line 121
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v6

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 122
    iget-object v3, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    const v2, 0x7f0b0056

    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/news/NewsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    aput-object v2, v3, v7

    .line 123
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v7

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 124
    iget-object v3, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    const v2, 0x7f0b01c1

    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/news/NewsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    aput-object v2, v3, v8

    .line 125
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v8

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 126
    iget-object v3, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    const/4 v4, 0x5

    const v2, 0x7f0b01c2

    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/news/NewsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    aput-object v2, v3, v4

    .line 127
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->button:[Landroid/widget/Button;

    const/4 v3, 0x5

    aget-object v2, v2, v3

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 129
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->getListView()Landroid/widget/ListView;

    move-result-object v2

    iput-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->listView:Landroid/widget/ListView;

    .line 130
    const v2, 0x7f0b01c3

    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/news/NewsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ListView;

    iput-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempView:Landroid/widget/ListView;

    .line 132
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->listView:Landroid/widget/ListView;

    invoke-virtual {v2, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 133
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempView:Landroid/widget/ListView;

    invoke-virtual {v2, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 136
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    const v3, 0x7f030009

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 137
    .local v0, footer:Landroid/view/View;
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->listView:Landroid/widget/ListView;

    invoke-virtual {v2, v0}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V

    .line 138
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempView:Landroid/widget/ListView;

    invoke-virtual {v2, v0}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V

    .line 143
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    const v3, 0x7f030015

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 145
    .local v1, header:Landroid/view/View;
    const v2, 0x7f0b004d

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/bitauto/autoeasy/widget/CustomeGallery;

    iput-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->gallery:Lcom/bitauto/autoeasy/widget/CustomeGallery;

    .line 147
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->listView:Landroid/widget/ListView;

    invoke-virtual {v2, v1}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 149
    const v2, 0x7f0b0016

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ProgressBar;

    iput-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->progressBar:Landroid/widget/ProgressBar;

    .line 151
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 6
    .parameter "v"

    .prologue
    const/4 v5, 0x3

    const/4 v4, 0x2

    const/4 v1, 0x1

    const/16 v3, 0x8

    const/4 v2, 0x0

    .line 299
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    .line 390
    :cond_0
    :goto_0
    return-void

    .line 301
    :sswitch_0
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    if-eqz v0, :cond_0

    .line 302
    iput v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    .line 303
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->changeButtonBg(I)V

    .line 304
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->setUrl(I)V

    .line 305
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    .line 306
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempView:Landroid/widget/ListView;

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->setVisibility(I)V

    .line 308
    :try_start_0
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->refreshCacheView(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_5

    .line 311
    :goto_1
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->RunTask()V

    goto :goto_0

    .line 315
    :sswitch_1
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    if-eq v0, v1, :cond_0

    .line 316
    iput v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    .line 317
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->changeButtonBg(I)V

    .line 318
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->setUrl(I)V

    .line 319
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempView:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    .line 320
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->setVisibility(I)V

    .line 322
    :try_start_1
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->refreshCacheView(I)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_4

    .line 325
    :goto_2
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->RunTask()V

    goto :goto_0

    .line 329
    :sswitch_2
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    if-eq v0, v4, :cond_0

    .line 330
    iput v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    .line 331
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->changeButtonBg(I)V

    .line 332
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->setUrl(I)V

    .line 333
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempView:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    .line 334
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->setVisibility(I)V

    .line 336
    :try_start_2
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->refreshCacheView(I)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3

    .line 340
    :goto_3
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->RunTask()V

    goto :goto_0

    .line 344
    :sswitch_3
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    if-eq v0, v5, :cond_0

    .line 345
    iput v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    .line 346
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->changeButtonBg(I)V

    .line 347
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->setUrl(I)V

    .line 348
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempView:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    .line 349
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->setVisibility(I)V

    .line 351
    :try_start_3
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->refreshCacheView(I)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2

    .line 355
    :goto_4
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->RunTask()V

    goto/16 :goto_0

    .line 359
    :sswitch_4
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    const/4 v1, 0x4

    if-eq v0, v1, :cond_0

    .line 360
    const/4 v0, 0x4

    iput v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    .line 361
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->changeButtonBg(I)V

    .line 362
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->setUrl(I)V

    .line 363
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempView:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    .line 364
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->setVisibility(I)V

    .line 366
    :try_start_4
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->refreshCacheView(I)V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1

    .line 369
    :goto_5
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->RunTask()V

    goto/16 :goto_0

    .line 373
    :sswitch_5
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    const/4 v1, 0x5

    if-eq v0, v1, :cond_0

    .line 374
    const/4 v0, 0x5

    iput v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    .line 375
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->changeButtonBg(I)V

    .line 376
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->setUrl(I)V

    .line 377
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempView:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    .line 378
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->setVisibility(I)V

    .line 380
    :try_start_5
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->refreshCacheView(I)V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0

    .line 383
    :goto_6
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->RunTask()V

    goto/16 :goto_0

    .line 387
    :sswitch_6
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->RunTask()V

    goto/16 :goto_0

    .line 381
    :catch_0
    move-exception v0

    goto :goto_6

    .line 367
    :catch_1
    move-exception v0

    goto :goto_5

    .line 352
    :catch_2
    move-exception v0

    goto :goto_4

    .line 337
    :catch_3
    move-exception v0

    goto :goto_3

    .line 323
    :catch_4
    move-exception v0

    goto/16 :goto_2

    .line 309
    :catch_5
    move-exception v0

    goto/16 :goto_1

    .line 299
    :sswitch_data_0
    .sparse-switch
        0x7f0b0053 -> :sswitch_0
        0x7f0b0054 -> :sswitch_1
        0x7f0b0055 -> :sswitch_2
        0x7f0b0056 -> :sswitch_3
        0x7f0b01ac -> :sswitch_6
        0x7f0b01c1 -> :sswitch_4
        0x7f0b01c2 -> :sswitch_5
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6
    .parameter "savedInstanceState"

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    const-string v5, ""

    .line 92
    invoke-super {p0, p1}, Lcom/bitauto/autoeasy/BaseListActivity;->onCreate(Landroid/os/Bundle;)V

    .line 94
    invoke-virtual {p0, v4}, Lcom/bitauto/autoeasy/news/NewsActivity;->requestWindowFeature(I)Z

    .line 96
    const v0, 0x7f030029

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->setContentView(I)V

    .line 98
    new-instance v0, Lcom/bitauto/autoeasy/news/Object/NewsParser;

    invoke-direct {v0, p0}, Lcom/bitauto/autoeasy/news/Object/NewsParser;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsParser:Lcom/bitauto/autoeasy/news/Object/NewsParser;

    .line 99
    new-instance v0, Lcom/bitauto/autoeasy/news/Object/FocusImgParser;

    invoke-direct {v0}, Lcom/bitauto/autoeasy/news/Object/FocusImgParser;-><init>()V

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->focusImgParser:Lcom/bitauto/autoeasy/news/Object/FocusImgParser;

    .line 101
    sput-object p0, Lcom/bitauto/autoeasy/news/NewsActivity;->activity:Lcom/bitauto/autoeasy/news/NewsActivity;

    .line 103
    const-string v0, "http://m.bitauto.com/appapi/News/List.ashx/"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    .line 104
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->initView()V

    .line 106
    const/4 v0, 0x0

    :try_start_0
    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->refreshCacheView(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 109
    :goto_0
    invoke-virtual {p0, v3}, Lcom/bitauto/autoeasy/news/NewsActivity;->changeColumn(I)V

    .line 111
    new-instance v0, Lcom/bitauto/autoeasy/news/NewsActivity$downLoadTask;

    invoke-direct {v0, p0}, Lcom/bitauto/autoeasy/news/NewsActivity$downLoadTask;-><init>(Lcom/bitauto/autoeasy/news/NewsActivity;)V

    new-array v1, v4, [Ljava/lang/String;

    const-string v2, ""

    aput-object v5, v1, v3

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/news/NewsActivity$downLoadTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 112
    new-instance v0, Lcom/bitauto/autoeasy/news/FocusTask;

    invoke-direct {v0, p0}, Lcom/bitauto/autoeasy/news/FocusTask;-><init>(Lcom/bitauto/autoeasy/news/NewsActivity;)V

    new-array v1, v4, [Ljava/lang/String;

    const-string v2, ""

    aput-object v5, v1, v3

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/news/FocusTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 113
    return-void

    .line 107
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 2
    .parameter "menu"

    .prologue
    .line 536
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->getMenuInflater()Landroid/view/MenuInflater;

    move-result-object v0

    .line 537
    .local v0, inflater:Landroid/view/MenuInflater;
    const/high16 v1, 0x7f0a

    invoke-virtual {v0, v1, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    .line 538
    const/4 v1, 0x1

    return v1
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 8
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 405
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    iget v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    if-nez v4, :cond_5

    .line 406
    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-ge v4, p3, :cond_3

    .line 408
    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    if-eqz v4, :cond_2

    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lez v4, :cond_2

    .line 409
    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    const-string v5, "/"

    invoke-virtual {v4, v5}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 410
    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "?endtime="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    iget-object v6, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v6

    const/4 v7, 0x1

    sub-int/2addr v6, v7

    invoke-virtual {v5, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    .end local p1           #parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    check-cast p1, Lcom/bitauto/autoeasy/news/Object/News;

    invoke-virtual {p1}, Lcom/bitauto/autoeasy/news/Object/News;->getModifytime()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 413
    .local v2, temp:Ljava/lang/String;
    :goto_0
    new-instance v3, Lcom/bitauto/autoeasy/news/NewsUpdateTask;

    iget v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-direct {v3, p0, v2, v4}, Lcom/bitauto/autoeasy/news/NewsUpdateTask;-><init>(Lcom/bitauto/autoeasy/news/NewsActivity;Ljava/lang/String;I)V

    .line 414
    .local v3, updateTask:Lcom/bitauto/autoeasy/news/NewsUpdateTask;
    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/String;

    const/4 v5, 0x0

    const-string v6, ""

    aput-object v6, v4, v5

    invoke-virtual {v3, v4}, Lcom/bitauto/autoeasy/news/NewsUpdateTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 484
    .end local v2           #temp:Ljava/lang/String;
    .end local v3           #updateTask:Lcom/bitauto/autoeasy/news/NewsUpdateTask;
    :cond_0
    :goto_1
    return-void

    .line 412
    .restart local p1       #parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    :cond_1
    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "&endtime="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    iget-object v6, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v6

    const/4 v7, 0x1

    sub-int/2addr v6, v7

    invoke-virtual {v5, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    .end local p1           #parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    check-cast p1, Lcom/bitauto/autoeasy/news/Object/News;

    invoke-virtual {p1}, Lcom/bitauto/autoeasy/news/Object/News;->getModifytime()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .restart local v2       #temp:Ljava/lang/String;
    goto :goto_0

    .line 416
    .end local v2           #temp:Ljava/lang/String;
    .restart local p1       #parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    :cond_2
    new-instance v0, Landroid/content/Intent;

    const-class v4, Lcom/bitauto/autoeasy/news/NewsDetailActivity;

    invoke-direct {v0, p0, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 417
    .local v0, intent:Landroid/content/Intent;
    const-string v4, "title"

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->title:Ljava/lang/String;

    invoke-virtual {v0, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 418
    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_1

    .line 420
    .end local v0           #intent:Landroid/content/Intent;
    :cond_3
    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    if-eqz v4, :cond_4

    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lez v4, :cond_4

    .line 421
    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    const/4 v5, 0x1

    sub-int v5, p3, v5

    invoke-virtual {v4, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/bitauto/autoeasy/news/Object/News;

    .line 422
    .local v1, news:Lcom/bitauto/autoeasy/news/Object/News;
    new-instance v0, Landroid/content/Intent;

    const-class v4, Lcom/bitauto/autoeasy/news/NewsDetailActivity;

    invoke-direct {v0, p0, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 423
    .restart local v0       #intent:Landroid/content/Intent;
    const-string v4, "title"

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->title:Ljava/lang/String;

    invoke-virtual {v0, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 424
    const-string v4, "newsid"

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/news/Object/News;->getNewsid()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 425
    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_1

    .line 427
    .end local v0           #intent:Landroid/content/Intent;
    .end local v1           #news:Lcom/bitauto/autoeasy/news/Object/News;
    :cond_4
    new-instance v0, Landroid/content/Intent;

    const-class v4, Lcom/bitauto/autoeasy/news/NewsDetailActivity;

    invoke-direct {v0, p0, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 428
    .restart local v0       #intent:Landroid/content/Intent;
    const-string v4, "title"

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->title:Ljava/lang/String;

    invoke-virtual {v0, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 429
    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_1

    .line 432
    .end local v0           #intent:Landroid/content/Intent;
    :cond_5
    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-ne v4, p3, :cond_7

    .line 434
    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lez v4, :cond_0

    .line 435
    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    const-string v5, "/"

    invoke-virtual {v4, v5}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_6

    .line 436
    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "?endtime="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    iget-object v6, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v6

    const/4 v7, 0x1

    sub-int/2addr v6, v7

    invoke-virtual {v5, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    .end local p1           #parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    check-cast p1, Lcom/bitauto/autoeasy/news/Object/News;

    invoke-virtual {p1}, Lcom/bitauto/autoeasy/news/Object/News;->getModifytime()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 439
    .restart local v2       #temp:Ljava/lang/String;
    :goto_2
    new-instance v3, Lcom/bitauto/autoeasy/news/NewsUpdateTask;

    iget v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    invoke-direct {v3, p0, v2, v4}, Lcom/bitauto/autoeasy/news/NewsUpdateTask;-><init>(Lcom/bitauto/autoeasy/news/NewsActivity;Ljava/lang/String;I)V

    .line 440
    .restart local v3       #updateTask:Lcom/bitauto/autoeasy/news/NewsUpdateTask;
    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/String;

    const/4 v5, 0x0

    const-string v6, ""

    aput-object v6, v4, v5

    invoke-virtual {v3, v4}, Lcom/bitauto/autoeasy/news/NewsUpdateTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto/16 :goto_1

    .line 438
    .end local v2           #temp:Ljava/lang/String;
    .end local v3           #updateTask:Lcom/bitauto/autoeasy/news/NewsUpdateTask;
    .restart local p1       #parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    :cond_6
    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "&endtime="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    iget-object v6, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v6

    const/4 v7, 0x1

    sub-int/2addr v6, v7

    invoke-virtual {v5, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    .end local p1           #parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    check-cast p1, Lcom/bitauto/autoeasy/news/Object/News;

    invoke-virtual {p1}, Lcom/bitauto/autoeasy/news/Object/News;->getModifytime()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .restart local v2       #temp:Ljava/lang/String;
    goto :goto_2

    .line 442
    .end local v2           #temp:Ljava/lang/String;
    .restart local p1       #parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    :cond_7
    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    if-eqz v4, :cond_8

    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lez v4, :cond_8

    .line 443
    iget-object v4, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v4, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/bitauto/autoeasy/news/Object/News;

    .line 444
    .restart local v1       #news:Lcom/bitauto/autoeasy/news/Object/News;
    new-instance v0, Landroid/content/Intent;

    const-class v4, Lcom/bitauto/autoeasy/news/NewsDetailActivity;

    invoke-direct {v0, p0, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 445
    .restart local v0       #intent:Landroid/content/Intent;
    const-string v4, "title"

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->title:Ljava/lang/String;

    invoke-virtual {v0, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 446
    const-string v4, "newsid"

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/news/Object/News;->getNewsid()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 447
    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_1

    .line 449
    .end local v0           #intent:Landroid/content/Intent;
    .end local v1           #news:Lcom/bitauto/autoeasy/news/Object/News;
    :cond_8
    new-instance v0, Landroid/content/Intent;

    const-class v4, Lcom/bitauto/autoeasy/news/NewsDetailActivity;

    invoke-direct {v0, p0, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 450
    .restart local v0       #intent:Landroid/content/Intent;
    const-string v4, "title"

    iget-object v5, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->title:Ljava/lang/String;

    invoke-virtual {v0, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 451
    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_1
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 2
    .parameter "item"

    .prologue
    .line 545
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 561
    :goto_0
    const/4 v0, 0x0

    return v0

    .line 547
    :pswitch_0
    iget v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->flag:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 548
    sget-object v0, Lcom/bitauto/autoeasy/news/NewsActivity;->activity:Lcom/bitauto/autoeasy/news/NewsActivity;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/bitauto/autoeasy/tool/ToolCity;->downLoadCity(Lcom/bitauto/autoeasy/news/NewsActivity;I)V

    goto :goto_0

    .line 550
    :cond_0
    invoke-static {p0}, Lcom/bitauto/autoeasy/tool/ToolCity;->downLoadCity(Landroid/content/Context;)V

    goto :goto_0

    .line 554
    :pswitch_1
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/bitauto/autoeasy/AboutActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/news/NewsActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 557
    :pswitch_2
    invoke-static {p0}, Lcom/bitauto/autoeasy/tool/ToolCity;->ExitDialog(Landroid/content/Context;)Landroid/app/Dialog;

    .line 558
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->TAG:Ljava/lang/String;

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->TAG:Ljava/lang/String;

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 545
    nop

    :pswitch_data_0
    .packed-switch 0x7f0b01c8
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method protected onResume()V
    .locals 1

    .prologue
    .line 155
    sget-object v0, Lcom/bitauto/autoeasy/MainActivity;->mainActivity:Lcom/bitauto/autoeasy/MainActivity;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/MainActivity;->getTitleButton()Landroid/widget/ImageButton;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->imageButton:Landroid/widget/ImageButton;

    .line 156
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->imageButton:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 157
    invoke-super {p0}, Lcom/bitauto/autoeasy/BaseListActivity;->onResume()V

    .line 158
    return-void
.end method

.method public refreshCacheView(I)V
    .locals 2
    .parameter "flog"

    .prologue
    .line 165
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsParser:Lcom/bitauto/autoeasy/news/Object/NewsParser;

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/news/Object/NewsParser;->Paser2ObjectByCache(Ljava/lang/String;)V

    .line 166
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsParser:Lcom/bitauto/autoeasy/news/Object/NewsParser;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Object/NewsParser;->getList()Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 167
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsParser:Lcom/bitauto/autoeasy/news/Object/NewsParser;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Object/NewsParser;->getList()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    .line 168
    if-nez p1, :cond_1

    .line 169
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->refreshView()V

    .line 174
    :cond_0
    :goto_0
    return-void

    .line 171
    :cond_1
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->refreshViewNoHeader()V

    goto :goto_0
.end method

.method public refreshFocusView()V
    .locals 3

    .prologue
    .line 185
    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->focuslist:Ljava/util/ArrayList;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->focuslist:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_0

    .line 187
    new-instance v0, Lcom/bitauto/autoeasy/widget/GalleryAdapter;

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->focuslist:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/bitauto/autoeasy/widget/GalleryAdapter;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    .line 188
    .local v0, adapter:Lcom/bitauto/autoeasy/widget/GalleryAdapter;
    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->gallery:Lcom/bitauto/autoeasy/widget/CustomeGallery;

    invoke-virtual {v1, v0}, Lcom/bitauto/autoeasy/widget/CustomeGallery;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    .line 189
    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->gallery:Lcom/bitauto/autoeasy/widget/CustomeGallery;

    new-instance v2, Lcom/bitauto/autoeasy/news/NewsActivity$1;

    invoke-direct {v2, p0}, Lcom/bitauto/autoeasy/news/NewsActivity$1;-><init>(Lcom/bitauto/autoeasy/news/NewsActivity;)V

    invoke-virtual {v1, v2}, Lcom/bitauto/autoeasy/widget/CustomeGallery;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 202
    .end local v0           #adapter:Lcom/bitauto/autoeasy/widget/GalleryAdapter;
    :cond_0
    return-void
.end method

.method public refreshView()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 218
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    if-nez v0, :cond_1

    .line 219
    new-instance v0, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    invoke-direct {v0, p0}, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;-><init>(Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    .line 220
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;->setList(Ljava/util/ArrayList;)V

    .line 221
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;->setListView(Landroid/widget/ListView;)V

    .line 222
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 223
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/bitauto/autoeasy/news/Object/News;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Object/News;->getNewsid()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempid:Ljava/lang/String;

    .line 224
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->listView:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 237
    :cond_0
    :goto_0
    return-void

    .line 227
    :cond_1
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/16 v1, 0x64

    if-ge v0, v1, :cond_0

    .line 231
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/bitauto/autoeasy/news/Object/News;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Object/News;->getNewsid()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempid:Ljava/lang/String;

    .line 232
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;->setList(Ljava/util/ArrayList;)V

    .line 233
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;->notifyDataSetChanged()V

    goto :goto_0
.end method

.method public refreshViewNoHeader()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 243
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    if-nez v0, :cond_1

    .line 244
    new-instance v0, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    invoke-direct {v0, p0}, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;-><init>(Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    .line 245
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;->setList(Ljava/util/ArrayList;)V

    .line 246
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempView:Landroid/widget/ListView;

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;->setListView(Landroid/widget/ListView;)V

    .line 247
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 248
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/bitauto/autoeasy/news/Object/News;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Object/News;->getNewsid()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempid:Ljava/lang/String;

    .line 249
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempView:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 260
    :cond_0
    :goto_0
    return-void

    .line 254
    :cond_1
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 255
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/bitauto/autoeasy/news/Object/News;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Object/News;->getNewsid()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempid:Ljava/lang/String;

    .line 256
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;->setList(Ljava/util/ArrayList;)V

    .line 257
    iget-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;->notifyDataSetChanged()V

    goto :goto_0
.end method

.method public setUrl(I)V
    .locals 2
    .parameter "num"

    .prologue
    .line 504
    packed-switch p1, :pswitch_data_0

    .line 530
    :goto_0
    return-void

    .line 506
    :pswitch_0
    const-string v0, "http://m.bitauto.com/appapi/News/List.ashx/"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    .line 507
    const-string v0, "\u6700\u65b0"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->title:Ljava/lang/String;

    goto :goto_0

    .line 510
    :pswitch_1
    const-string v0, "http://m.bitauto.com/appapi/News/List.ashx/?type=1"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    .line 511
    const-string v0, "\u65b0\u8f66"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->title:Ljava/lang/String;

    goto :goto_0

    .line 514
    :pswitch_2
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "http://m.bitauto.com/appapi/News/List.ashx/?city="

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/news/NewsActivity;->getCityID()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "&type="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    .line 515
    const-string v0, "\u884c\u60c5"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->title:Ljava/lang/String;

    goto :goto_0

    .line 518
    :pswitch_3
    const-string v0, "http://m.bitauto.com/appapi/News/List.ashx/?type=3"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    .line 519
    const-string v0, "\u8bc4\u6d4b"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->title:Ljava/lang/String;

    goto :goto_0

    .line 522
    :pswitch_4
    const-string v0, "http://m.bitauto.com/appapi/News/List.ashx/?type=4"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    .line 523
    const-string v0, "\u5bfc\u8d2d"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->title:Ljava/lang/String;

    goto :goto_0

    .line 526
    :pswitch_5
    const-string v0, "http://m.bitauto.com/appapi/News/List.ashx/?type=5"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->url:Ljava/lang/String;

    .line 527
    const-string v0, "\u884c\u4e1a"

    iput-object v0, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->title:Ljava/lang/String;

    goto :goto_0

    .line 504
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
    .end packed-switch
.end method

.method public updateList(Ljava/util/ArrayList;)V
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/news/Object/News;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 277
    .local p1, list2:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/news/Object/News;>;"
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lt v0, v1, :cond_1

    .line 280
    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    if-eqz v1, :cond_0

    .line 281
    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->newsAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;->notifyDataSetChanged()V

    .line 283
    :cond_0
    return-void

    .line 278
    :cond_1
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {p1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/bitauto/autoeasy/news/Object/News;

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 277
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public updateList2(Ljava/util/ArrayList;)V
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/news/Object/News;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 289
    .local p1, list2:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/news/Object/News;>;"
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lt v0, v1, :cond_1

    .line 292
    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    if-eqz v1, :cond_0

    .line 293
    iget-object v1, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->tempAdapter:Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/news/Adapter/NewsAdapter;->notifyDataSetChanged()V

    .line 295
    :cond_0
    return-void

    .line 290
    :cond_1
    iget-object v2, p0, Lcom/bitauto/autoeasy/news/NewsActivity;->list:Ljava/util/ArrayList;

    invoke-virtual {p1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/bitauto/autoeasy/news/Object/News;

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 289
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method
